package com.sitecsys.service;

import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.sitecsys.config.Result;
import com.sitecsys.pojo.FTLUser;
import com.sitecsys.pojo.result.FaceResult;
import jdk.nashorn.internal.scripts.JO;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.Map;


public interface FTLUserService extends IService<FTLUser> {

    public Result login(JSONObject jsonObject);

    public Result register(JSONObject jsonObj);

    public Result getUserByPhone(HttpServletRequest request);

    public Result getUserByPhoneAndName(JSONObject jsonObj);

    public Result updateUserById(JSONObject jsonObj);

    public Result CheckUserByPhone(JSONObject jsonObj);

    public Result updatePassword(JSONObject jsonObj);

    public Result checkUserByFace(JSONObject jsonObj);

    public Result newPwdUpdate(JSONObject jsonObj, HttpServletRequest request) throws Exception;

    public Result uploadImage(JSONObject jsonObj, HttpServletRequest request) throws Exception;

    public Result updateAvatar(JSONObject jsonObj, HttpServletRequest request) throws Exception;

    public Result getUsers(JSONObject jsonObj,HttpServletRequest request) throws Exception;

    public Result getUsersByAdvSearch(JSONObject jsonObj,HttpServletRequest request) throws ParseException;

    public Result getUserById(JSONObject jsonObj);

    public Result delById(JSONObject jsonObj);

    public Result reSetPwd(JSONObject jsonObj);

    public Result batchDel(JSONObject jsonObj);

    public Result batchResetStatus(JSONObject jsonObj);

    public Result getAuth(JSONObject jsonObj);

    public Result updateAuth(JSONObject jsonObj) throws JsonProcessingException;

    public Result getAuths();

    Result vef(String imageBase);
}
